package com.test2015.Swing.reflectionJFrame;

import java.awt.BorderLayout;
import java.awt.Window;
import java.util.Map;
import java.util.Set;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

public class ColoredFrame extends JReflectionFrame {
	public ColoredFrame() {
		super("Reflection");
		this.add(new ColoredPanel(), BorderLayout.CENTER);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setSize(400, 200);
		this.setLocationRelativeTo(null);
		this.setResizable(false);
//		this.setUndecorated(true);
	}

	public static void main(String[] args) throws UnsupportedLookAndFeelException {
		
//		for(int i=0;i<keys.size();i++){
//			String key = keys.iterator().next();
//			System.out.print(key+" :");
//			System.out.println(skins.get(key));
//			System.out.println("-----    ---- -- - - - - -"+i);
//		}
		
		JFrame.setDefaultLookAndFeelDecorated(true);
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				try {
//					UIManager.setLookAndFeel(new SubstanceAutumnLookAndFeel());
					Window w = new ColoredFrame();
					w.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

}
